home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 31 / Amiga Format CD31 (1998-09-02)(Future Publishing)(GB)(Track 1 of 2)[!][issue 1998-10].iso / -seriously_amiga- / hardware / transadf / source / td.h < prev    next >
C/C++ Source or Header  |  1998-07-20  |  2KB  |  56 lines

  1. /* td.h - Header file for td.c
  2. ** Copyright (C) 1997,1998 Karl J. Ots
  3. ** 
  4. ** This program is free software; you can redistribute it and/or modify
  5. ** it under the terms of the GNU General Public License as published by
  6. ** the Free Software Foundation; either version 2 of the License, or
  7. ** (at your option) any later version.
  8. ** 
  9. ** This program is distributed in the hope that it will be useful,
  10. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. ** GNU General Public License for more details.
  13. ** 
  14. ** You should have received a copy of the GNU General Public License
  15. ** along with this program; if not, write to the Free Software
  16. ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  17. */
  18.  
  19. #ifndef TRANSADF_TD_H
  20. #define TRANSADF_TD_H
  21.  
  22.  
  23. /*--------------------*/
  24. /* TrackDisk Routines */
  25. /*--------------------*/
  26.  
  27. #ifndef EXEC_TYPES_H
  28. #include <exec/types.h>
  29. #endif /* EXEC_TYPES_H */
  30.  
  31. #ifndef DEVICES_TRACKDISK_H
  32. #include <devices/trackdisk.h>
  33. #endif /* DEVICES_TRACKDISK_H */
  34.  
  35.  
  36. /*---------------------*/
  37. /* Function Prototypes */
  38. /*---------------------*/
  39.  
  40. BYTE readTrack  (APTR  rBuffer, UBYTE  rNumTracks, UBYTE rTrackNum,
  41.                  struct IOExtTD *rDiskReq);
  42. BYTE writeTrack (APTR  wBuffer, UBYTE  wNumTracks, UBYTE wTrackNum,
  43.                  struct IOExtTD *wDiskReq);
  44. BYTE flushTrack (struct IOExtTD *DiskReq);
  45.  
  46.  
  47. /*---------------*/
  48. /* Useful Macros */
  49. /*---------------*/
  50.  
  51. #define TRACK_SIZE  (TD_SECTOR * NUMSECS) /* Number of bytes in one track */
  52. #define LOW_TRACK   0                     /* The first track on a disk    */
  53. #define HIGH_TRACK  159                   /* The last track on a disk     */
  54.  
  55. #endif /* TRANSADF_TD_H */
  56.